package com.ruoyi.reward.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 兑换订单对象 community_order
 * 
 * @author xianyu
 * @date 2025-04-04
 */
public class CommunityOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long rewardId;

    /** 消耗积分 */
    @Excel(name = "消耗积分")
    private Long pointsCost;

    /** pending/completed */
    @Excel(name = "pending/completed")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRewardId(Long rewardId) 
    {
        this.rewardId = rewardId;
    }

    public Long getRewardId() 
    {
        return rewardId;
    }

    public void setPointsCost(Long pointsCost) 
    {
        this.pointsCost = pointsCost;
    }

    public Long getPointsCost() 
    {
        return pointsCost;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("rewardId", getRewardId())
            .append("pointsCost", getPointsCost())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
